﻿using System.Configuration;
using Inscriptionem.Configuration.Elements.Base;

namespace Inscriptionem.Configuration.Elements
{
    public class CommentsElement : BaseConfigurationElement
    {
        [ConfigurationProperty("allowed", DefaultValue = true, IsRequired = true)]
        public bool Allowed
        {
            get
            {
                return (bool)this["allowed"];
            }
            set
            {
                this["allowed"] = value;
            }
        }

        [ConfigurationProperty("publishApprovalRequired", DefaultValue = true, IsRequired = true)]
        public bool PublishApprovalRequired
        {
            get
            {
                return (bool)this["publishApprovalRequired"];
            }
            set
            {
                this["publishApprovalRequired"] = value;
            }
        }
    }
}